package org.sws.domain.activity.model.aggregate;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.sws.domain.activity.model.entity.ActivityRechargeEntity;
import org.sws.domain.activity.model.valobj.OrderStateVO;

/**
 * @author sws
 * @description 下单聚合对象
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CreateQuotaOrderAggregate {

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 活动ID
     */
    private Long activityId;

    /**
     * 总次数
     */
    private Integer totalCount;


    /**
     * 日次数
     */
    private Integer dayCount;

    /**
     * 月次数
     */
    private Integer monthCount;

    /**
     * 活动订单实体
     */
    private ActivityRechargeEntity activityRechargeEntity;

    public void setOrderState(OrderStateVO orderState) {
        this.activityRechargeEntity.setState(orderState);
    }

}
